/** Timezone panel
 *
 * @author pquiring
 */

import jfparted.*;
import jfconfig.*;

public class TimeZone extends IPanel {

  /**
   * Creates new form TimeZoneStage
   */
  public TimeZone() {
    initComponents();
    tzPanel = new TimeZonePanel();
    String tz = Data.timezone;
    if (tz == null) tz = "America/New_York";
    tzPanel.setTimeZone(tz);
    add(tzPanel);
  }

  /**
   * This method is called from within the constructor to initialize the form.
   * WARNING: Do NOT modify this code. The content of this method is always
   * regenerated by the Form Editor.
   */
  @SuppressWarnings("unchecked")
  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
  private void initComponents() {

    setLayout(new java.awt.GridLayout(1, 1));
  }// </editor-fold>//GEN-END:initComponents


  // Variables declaration - do not modify//GEN-BEGIN:variables
  // End of variables declaration//GEN-END:variables

  TimeZonePanel tzPanel;

  public IPanel next() {
    Data.timezone = tzPanel.getTimeZone();
    return new InstallTypes();
  }
  public IPanel prev() {
    Data.timezone = tzPanel.getTimeZone();
    return new GetUserDetails();
  }
  public IPanel getThis() {
    return this;
  }
}
